package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the ANSWER_QUESTION database table.
 * 
 */
@Entity
@Table(name="ANSWER_QUESTION")
@NamedQuery(name="AnswerQuestion.findAll", query="SELECT a FROM AnswerQuestion a")
public class AnswerQuestion implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="ANSWER_QUESTION_ANSWERID_GENERATOR", sequenceName="SEQ_1")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ANSWER_QUESTION_ANSWERID_GENERATOR")
	@Column(name="ANSWER_ID")
	private long answerId;

	@Column(name="ANSWER_ANS")
	private String answerAns;

	@Column(name="ANSWER_AUTHOR")
	private String answerAuthor;

	@Column(name="ANSWER_NUMBER")
	private BigDecimal answerNumber;

	@Column(name="ANSWER_PROMPT")
	private String answerPrompt;

	@Column(name="ANSWER_QUESTION")
	private String answerQuestion;

	@Column(name="ANSWER_STATE")
	private BigDecimal answerState;

	@Temporal(TemporalType.DATE)
	@Column(name="ANSWER_TIME")
	private Date answerTime;

	//bi-directional many-to-one association to AnswerStyle
	@ManyToOne
	@JoinColumn(name="AS_ID")
	private AnswerStyle answerStyle;

	public AnswerQuestion() {
	}

	public long getAnswerId() {
		return this.answerId;
	}

	public void setAnswerId(long answerId) {
		this.answerId = answerId;
	}

	public String getAnswerAns() {
		return this.answerAns;
	}

	public void setAnswerAns(String answerAns) {
		this.answerAns = answerAns;
	}

	public String getAnswerAuthor() {
		return this.answerAuthor;
	}

	public void setAnswerAuthor(String answerAuthor) {
		this.answerAuthor = answerAuthor;
	}

	public BigDecimal getAnswerNumber() {
		return this.answerNumber;
	}

	public void setAnswerNumber(BigDecimal answerNumber) {
		this.answerNumber = answerNumber;
	}

	public String getAnswerPrompt() {
		return this.answerPrompt;
	}

	public void setAnswerPrompt(String answerPrompt) {
		this.answerPrompt = answerPrompt;
	}

	public String getAnswerQuestion() {
		return this.answerQuestion;
	}

	public void setAnswerQuestion(String answerQuestion) {
		this.answerQuestion = answerQuestion;
	}

	public BigDecimal getAnswerState() {
		return this.answerState;
	}

	public void setAnswerState(BigDecimal answerState) {
		this.answerState = answerState;
	}

	public Date getAnswerTime() {
		return this.answerTime;
	}

	public void setAnswerTime(Date answerTime) {
		this.answerTime = answerTime;
	}

	public AnswerStyle getAnswerStyle() {
		return this.answerStyle;
	}

	public void setAnswerStyle(AnswerStyle answerStyle) {
		this.answerStyle = answerStyle;
	}

}